package com.jar.exercise.坑爹的面试题;

/**
 *
 */
public class Demo10 {
	int i = getJ();
	int j = 0;

	private int getJ() {
		j = 10;
		System.out.println(i);
		return j;
	}

	public static void main(String[] args) {
		//当我们创建对象的时候，属性都要有默认值 int 为0
		Demo10 d = new Demo10();
		System.out.println(d.j); // 0 0
	}
}
